import { request } from "@/utils/request";

export function addRoles(params: Object) {
  return request({
    url: "api/roles/addRoles.php",
    method: "GET",
    params,
  });
}
export function getRoles() {
  return request({
    url: "api/roles/getAllRoles.php",
    method: "GET",
  });
}

export function GetRolesInfo(params: any) {
  return request({
    url: `api/roles/getOneRoles.php`,
    method: "GET",
    params,
  });
}
export function EditRolesInfo(params: any) {
  return request({
    url: `api/roles/updateRoles.php`,
    method: "GET",
    params,
  });
}
export function DelRoles(params: any) {
  return request({
    url: `api/roles/delRoles.php`,
    method: "GET",
    params,
  });
}
